/*
menu_select();
*/
var menu;
if (ds_grid_value_exists(global.menu_index,0,0,4,ds_grid_height(global.menu_index),argument0))
{
menu = ds_grid_value_y(global.menu_index,0,0,4,ds_grid_height(global.menu_index),argument0);
global.menu_options = ds_grid_get(global.menu_index,3,menu);
global.menu_option_indexes = ds_grid_get(global.menu_index,4,menu);
global.menu_option_selected = -1;
global.menu_id = argument0;
}
else
{
show_debug_message("Trying to select a non-existent menu. Menu ID: "+string(argument0));
}
